package org.dcits.service;

import java.util.List;
import java.util.Map;

import org.dcits.dao.TransHistoryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 交易流水业务服务service
 * @author czl
 *
 */
@Service
public class TransHistoryService {

	@Autowired
	private TransHistoryDao transHistoryDao;

	/**
	 * 查看当前账户是否存在
	 * @param acctNo
	 * @throws Exception 
	 */
	public boolean isExistClientNo(String acctNo) throws Exception {
		
		return transHistoryDao.isExistClientNo(acctNo);
	}

	public List<Map<String, Object>> queryTranHistory(String clientNo,String statu) throws Exception {
		List<Map<String, Object>> queryTranHistory=null;
		queryTranHistory = transHistoryDao.queryTranHistory(clientNo,statu);
		return queryTranHistory;
	}

	public List<Map<String, Object>> findAccNoByUserId(int userId) throws Exception {
		return transHistoryDao.findAccNoByUserId(userId);	
	}
	
	
	
}
